package base;

public class T9 {

    public static void main(String[] args) {
        Ant ant = new Ant();
        ant.eat();
    }
}
//动物类
class Ani{
    public void eat(){
        System.out.println("父类方法");
    }
}

class Ant extends Ani{
    @Override
    public void eat() {
        super.eat();
        System.out.println("子类方法");
    }
}